You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecIntHelper Class > TMtxVecIntHelper Methods > FindAndSplit Method > TMtxVecIntHelper.FindAndSplit Method (this TMtxVecInt, [In] TMtxVec, [In] string, [In] TMtxVec, [In] TVec, [In] TVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecIntHelper.FindAndSplit Method (this TMtxVecInt, [In] TMtxVec, [In] string, [In] TMtxVec, [In] TVec, [In] TVec)

Finds the masks for a vector and splits it.

Syntax
C#
Visual Basic
public static TMtxVecInt FindAndSplit(this TMtxVecInt aThis, [In] TMtxVec a, [In] string op, [In] TMtxVec b, [In] TVec MaskVec, [In] TVec NotMaskVec);

The method splits the a vector in two vectors. The MaskVec will hold the those elements where the Op comparison between a and b is True. Op string parameter can be < , > , >= , <= , = or <> . NotMaksVec will hold all those elements where the Op comparison between a and b is false. 

The calling vector will store the mask, 1 at those index locations where the Op comparison was True and 0 at those index locations where the Op comparison was false.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!